package com.atguigu.gulimall.order.dao;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 *
 * @author wuweiji557
 * @email wuweiji557@gmail.com
 * @date 2024-11-07 23:12:23
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    void updateOrderStatus(@Param("orderSn") String orderSn, @Param("payType") Integer targetOrderStatus, @Param("code") Integer payCode);

    void updateOrderStatusByOrderSn(@Param("orderSn") String orderSn,@Param("status") Integer status);
}
